//
//  AYSILView.m
//  AiYingShiProject
//
//  Created by lanou on 15/10/27.
//  Copyright © 2015年 李晓理. All rights reserved.
//

#import "AYSILView.h"

@implementation AYSILView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height * 3 / 4)];
        _imageView.backgroundColor = [UIColor yellowColor];
        [self addSubview:_imageView];
        
        _label = [[UILabel alloc] initWithFrame:CGRectMake(0, frame.size.height * 3 / 4, frame.size.width, frame.size.height / 4)];
        _label.font = [UIFont systemFontOfSize:15];
        _label.textColor = [UIColor whiteColor];
        _label.textAlignment = NSTextAlignmentCenter;
        _label.backgroundColor = [UIColor blueColor];
        [self addSubview:_label];
    }
    return self;
}

@end
